import React from "react";
import { Header } from "./Header";
import { BrowserRouter,Route,Link,Switch} from 'react-router-dom';
import Content from "./Content";
import AuthProvider from "./AuthProvider";

//! router hooks里的方法
const App=()=>{
    return (
        <AuthProvider>
            {/* 组件的children属性 */}
            <BrowserRouter>
                <Header/>
                <Content/>
            </BrowserRouter>
        </AuthProvider>
    )
}

export default App;
